package com.ccp.dev.workflow.dao;

import com.ccp.dev.core.basic.base.IBaseMapper;
import com.ccp.dev.workflow.model.bpm.BpmBatchApproval;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * ClassDescribe:
 * 对象功能:流程批量审批定义设置 Dao类
 * @author :wangcheng
 * Date: 2019-10-08
 */
public interface BpmBatchApprovalDao extends IBaseMapper<BpmBatchApproval, String> {
    /**
     * 根据流程以及节点，查看批量审批配置
     * @param modelKey 流程key
     * @param nodeId 节点id
     * @param id 审批配置id
     * @return 对象列表
     */
    List<BpmBatchApproval> isExists(@Param("modelKey") String modelKey, @Param("nodeId") String nodeId, @Param("id") String id);

    /**
     * 获取主键列表
     * @param params 参数列表
     * @return
     */
    List<String> businessKeyList(Map<String, Object> params);
}
